package com.luojie.mapper;


import com.luojie.po.Ball;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BallMapper {

    List<Ball> selectByMachesId(Integer matchesId);

    @Delete("delete from luojie_take_out.ball where matches_id=#{matchesId}")
    void deletById(Integer matchesId);

    void addball(Ball ball);


    void updateBall(Ball ball);


    List<Ball> selectByMachesIds(List<Integer> matchesIds);

    @Select("select * from luojie_take_out.ball where id=#{id} and matches_id=#{matchesId}")
    Ball selectById(Integer id, Integer matchesId);
}
